//用户相关的接口
import request from '@/utils/request'
//引入ts类型
import { loginForm, loginResponseData, userREsponseData } from './type'
//接口
enum API {
    LOGIN_URl = '/api/user/login',
    USERINFO_URL = 'api/user/info',
}
//用户登录
export const reqLogin = (data: loginForm) =>
    request.post<any, loginResponseData>(API.LOGIN_URl, data)
//用户信息
export const reqUserInfo = () =>
    request.get<any, userREsponseData>(API.USERINFO_URL)
